package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.HumanClinicalTrial;
import com.ruoyi.system.api.factory.RemoteHumanClinicalTrialFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(contextId = "RemoteHumanClinicalTrialService",value = ServiceNameConstants.HUMAN_SERVICE,fallbackFactory = RemoteHumanClinicalTrialFallbackFactory.class)
public interface RemoteHumanClinicalTrialService {
    @GetMapping(value = "/trial/trial/{trialId}")
    public R<HumanClinicalTrial> getTrialInfo(@PathVariable("trialId") Long trialId);
}
